package net.sk.china.city.talk.service.wechat;

import com.baomidou.mybatisplus.extension.service.IService;
import net.sk.china.city.talk.model.wechat.WechatReply;
import net.sk.china.city.talk.request.wechat.WechatReplyRequest;
import net.sk.china.city.talk.request.wechat.WechatReplySearchRequest;
import net.sk.china.common.request.PageParamRequest;

import java.util.List;

/**
 * WechatReplyService 接口
 * +----------------------------------------------------------------------
 * // | Talk To [ 聊来改善地区金融服务环境，助力企业发展 ]
 * // +----------------------------------------------------------------------
 * // | Copyright (c) 2018-2024 聊来 All rights reserved.
 * // +----------------------------------------------------------------------
 * // | Licensed ( <a href="http://www.apache.org/licenses/LICENSE-2.0">apache</a> )
 * // +----------------------------------------------------------------------
 * // | @Author: 聊来 <18970881148@qq.com>
 * // +----------------------------------------------------------------------
 * // | DateTime: 2024/2/21 10:12
 * // +----------------------------------------------------------------------
 */
public interface WechatReplyService extends IService<WechatReply> {

    /**
     * 列表
     * @param request 请求参数
     * @param pageParamRequest 分页类参数
     * @return {@code List<WechatReply>}
     */
    List<WechatReply> getList(WechatReplySearchRequest request, PageParamRequest pageParamRequest);


    /**
     * 新增微信关键字回复表
     * @param reply 新增参数
     * @return {@code boolean}
     */
    boolean create(WechatReply reply);

    /**
     * 根据关键字查询数据
     * @param keywords 新增参数
     * @return {@code WechatReply}
     */
    WechatReply getVoByKeywords(String keywords);

    /**
     * 查询微信关键字回复表信息
     * @param id Integer
     * @return {@code WechatReply}
     */
    WechatReply getInfo(Integer id);


    /**
     * 修改微信关键字回复表
     * @param request 修改参数
     * @return {@code boolean}
     */
    boolean updateReply(WechatReplyRequest request);

    /**
     * 修改状态
     * @param id integer id
     * @param status boolean 状态
     * @return {@code boolean}
     */
    Boolean updateStatus(Integer id, Boolean status);
}
